Birth Control

Why does the doctor ask if you've had sex if you're trying to get birth control. What if you lie and say no? Would that effect your prescription?