Can a 17 year old work in a factory during the summer?

Generally someone who is under the age of 18 can't work manufacturing jobs (factory jobs)