Tampons

Ik this is probably a dumb question, but I wanted to try tampons and so you are supposed to take them out when you pee right? And also I tried one once Bc I got my period while at a water park is it supposed to hurt so bad? Or did I not put it in right maybe?