You only have to be under 21 at the start of the qualifying for that competition, so you can be about 23 by the time the actual tournament starts. Otherwise most of the players who helped you qualify across a couple of years wouldn't be allowed to play in the actual tournament.