Random question

Brenda
When should a guy put a condom on during sex? At the beginning or right before he comes?