Usually, yes. The local anesthesia used during routine work, like filling cavities, isn't believed to have any negative effect on an unborn baby. But if possible, you should try to postpone x-rays, oral surgery, procedures that require general anesthesia, and all cosmetic work until after your baby is born. If a situation arises where you need extensive dental work, talk to your doctor to be sure the benefits outweigh the risks. If an x-ray is absolutely necessary, be sure to tell your dentist that you're pregnant so your belly can be properly shielded to minimize the amount of radiation that may reach your baby.
Seeing your dentist for a routine checkup and cleaning is an important part of a healthy pregnancy, so it's a good idea to book that appointment now if you haven't already. Pregnant women are more prone to gum problems like gingivitis, so you may need more frequent cleanings while you're expecting.