Use of free patterns form yarn companies

I have been looking for free patterns for potential summer projects. I have found some that may be suitable on line from some of the major yarn companies and also some posted free in stores (Walmart, Michael's, Joanne's). Can we use these patterns for our classes or must we first get permission from the yarn company? If anyone knows the policy, please share it with me. Thanks