Sharp pain

Before and during my fertile window when I have sex with my husband I get sharp pains on my lower tummy. Any ideas why? Can it be from ovulation?