Is this set up correctly

I got a old tiny fish tank from someone, it came with an under gravel filter. I think I got it set up correctly, but when looking at pictures of other tanks it looks like the top part where the air line goes in might be too tall. Is it ok if it sticks out of the tank or should it be submerged?