It is listed as a drug to take if the benefits outweigh the risks. Talk to your doctor.
Cefalexin is one of the antibiotics that is listed as fine for pregnant woman to take. However it has a long list of side effects, if you experiencing any of them you might be allergic to the antibiotic and it is best to call your doctor and ask for an alternative.