Can a store tell you that you cannot return or exchange something that you have purchased less than an hour?

If the store has a clearly displayed "no returns or exchanges" policy displayed, they don't have to take it back.