Sin or no?

Is having sexual *thoughts* a sin or being immoral? Or is it okay as long as nothing comes of it and you don’t think about it a lot? I’m sorry, I just want to know because I’m a teen and I feel so bad when things like this come to my head and I feel like I’m sinning so I feel guilty.