Which razors
TSA’s list splits razors four ways. Disposable razors are a yes in both bags, and so are electric razors. A safety razor can go in a carry-on only with the blade out. Loose razor blades can’t go in a carry-on at all.
In a checked bag
Yes. Sheathe or wrap it, as TSA asks for anything sharp.
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.
TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”