Yes. The upper ring magnet stays floating in the air, a little above the lower one, with only the wooden stick passing through it.
The Earth pulls the upper magnet downwards, so something must be pushing it up by exactly as much, or it would come down. Nothing is touching it. That upward push is the magnetic force of repulsion between the two like poles that face each other, and it is acting across a gap.