Hello, Perfection. Welcome! In all cases that I've seen, the capsule is placed on the bottle at the time of bottling. Same goes with wax.
The capsule is primarily a decorative piece these days. The cork is the sole sealant of the bottle responsible for closure and air-tightness.
I know a very good winemaker who doesn't use capsules at all.