If you are planting them as soon as you cut the squash yup simply plant them..
If you want to save the seed. Wash them off and then set them to dry on a paper towel. When dry sufficiently (usually a couple weeks) put in a envelope and store til ready to plant