Doctor being rude

I am 20 and TTC with my husband, who is 22. We went to the doctor recently because I was concerned that I wasn't getting my period regularly (I was having 45+ day long cycles). We told him we were TTC and he said we were making a mistake and we needed to wait, and that we were too young to have children. Has anyone else experienced this when going to the doctor?