Yes, Turnitin will detect your own work if you submit it to another class. In my experience, Turnitin's database retains copies of all submissions, allowing it to recognize when a document or significant parts match something submitted previously.