Is it a good idea to work for free just to get some experience in graphic design?
Yes/No. Unless it is a very small task that will take less than an hour, never settle for free jobs in a bid to earn some experience. People will take advantage of you and will make money out of your work. Some small tasks will however help you learn and earn a reputation before you get full time jobs.