Pain during intercourse

I'm a female who is trying to have my first baby. However when ever me and my husband have sex it is extremely painful for me and I'm scared I might not be able to have kids. I have an appointment to be seen but any advise now would be great