This is quite common among female docs, so the answer is yes.
You can. It may be easier if you run your own practice. A lot of hospital systems will require a period of close observation to grant you full privileges (beyond the usual FPPE/OPPE) if you have been out of practice for a significant amount of time. Regardless, it can be done.