Noticing your thoughts and working with distraction is a large part of meditation. The mind does not suddenly stop turning just because we sit on the mat.
The good news is if you can notice thoughts and distraction you are actually meditating. We learn how to work with thoughts in a positive way and with time make them our friend.
Make friends with your mind.