Put a zoom lens on say f/8 and it will maintain f/8 as you zoom in and out at deferent focal lengths.
For a "constant aperture" zoom, yes. Same with f/2.8 (if the particular zoom lens is capable of f/2.8). But that is not the same thing as the physical aperture changing, since the f/number is not computed with the size of the physical aperture (it uses the size of the entrance pupil).
It also happens with a Canon Rebel kit lens at f/8 from its 18 to 55mm focal lengths. As you zoom in and out it maintains f/8 if that's what you have the camera set on.
At 18mm it has an effective 2.25mm aperture. At 55mm it has an effective 6.87mm aperture at f/8. (I realise the front element is not the aperture on a camera lens)

55mm f/8
The math works out by those numbers. It's also applicable to a basic crown doublet refracting telescope that's aperture is measured by the diameter of the lump of glass at the front of it. It has no other diaphragms or lens elements.

150mm aperture on a 1200mm f/8 focal length
However f/8 on the telescope exposes just the same as f/8 on the Canon Rebel kit lens...

55mm f/8, 1/250 sec, ISO 100

1200mm f/8, 1/250 sec, ISO 100
(note the exact same shade of blue sky)
It all boils down to those numbers. There's no need to over complicate things.