Cefazolin is generally considered safe during pregnancy and is classified as a Category B drug by the FDA, indicating no proven risk in humans. It is also excreted in breast milk in small amounts, but it is usually deemed safe for use during lactation.