the pill/doctor?

so me and my bf have had sex, and i can’t tell my mom about it otherwise she’d flip out even though i’m 18. so she wants me to go to the gynecologist so i can be on the pill. do they ask any questions based on like sex stuff and can they like tell if you’ve had sex before?