credit card offers

There are lots of offers that give away free stuff for signing up for a credit card. Assuming that I just sign up, get the reward and then cancel, does that hurt my credit or anything else? Thank you