Lying to Doctor about Sex?

I went to the doctor today and it was my first visit ever there. She asked me  if I'm sexually active and I completely blushed and got super embarrased. Idk why. I said no (but I am, with the same guy I've only had sex with). She asked if I've ever had sex and I said yes (which is true). Later she asked if there was any chance I could be pregnant and I said no (which I honestly don't know, no bc method is 100%). Has anyone done this? I really hve nothing to be ashamed of. I've only been with 1 person, but I felt soooooo much shame. How can I get over this?