Can you use a sewing machine to sew knitted squares together?

Some knitters do not like sewing the knitted fabrics together by hand because it takes so much time, so some find other ways to accomplish this task by using the sewing machine. Sewing knitted squares together on a sewing machine makes the work faster and easier than joining each square to the other by hand sewing.

THIS IS UNIQUE:  Should I wash my hair before a sew in?