Asking for a friend

If you are saving for community college and technical school is a 529 worth it ? The details only saving for 3 years and about $4000. Is it worth the risk to use a 529 versus a saving account ?