Help?! Is this safe?

My husband and I had anal sex last night for the first time. Before he came I asked him if it was safe to do so and he said yes. Is it medically safe for a man to ejaculate inside of you during anal sex? Thanks for your help ladies!