Yes, watching porn is a sin. The clearest passage is Matthew 5:27-28, where Jesus says anyone who looks at someone lustfully has already committed adultery in their heart. There’s also Job 31:1, where Job makes a covenant with his eyes not to gaze at a woman.
What changed things for me was understanding that God’s design for sexuality is about real connection, and porn trains you away from that.