GIVING is perfectly legal. Making copies and distributing isn't, whether you're making money off them or not.
I recently got into a huge "discussion" about this on a FB group where we were all supposed to be sharing our Christmas cookie recipes. Someone posted pictures of an entire cookbook, all 75 or so pages of it. I pointed out that this was a copyright violation and could get the group shut down. One person actually justified it by telling me teachers do it all the time. That doesn't make it right!