OK to get an erection, yes. It happens, especially at your age. OK to get an erection because you've been focusing on bodies you find sexy, or because you want people to notice it? No. That's not good behavior, and people can tell. If you do get an erection, take steps to avoid it being noticed until it fades - roll over, get in the water, pull up a towel.