No, it's not Haram to rub your private parts but in Islam when you are feeling uncomfortable or when your private parts are itchy you can scratch it but after that you should wash your hands and most important it should not lead to any sexual arousal.