Doctor

Im planning on having sex soon but im not telling my mom yet (i only live with her) but i also have a doctors appointment in 2 months and they normally check my vagina to see if everything is okay. But they will notice that i had sex and theyll tell my mom. Do the doctors HAVE to look or is it optional?