tooth ache

So I saw the dentist last month but I wasn't able to get an X-ray since I'm pregnant. But today I noticed I am having a bit of tooth pain. Anyone gone through this while pregnant? I know I can't do an x ray but if it's a cavity how will they know?