NASA Ames Internship [Any Q's?]

If you are accepted for a position and accept, but then decide you wish to do something else during the summer, would you be allowed to decline the offer AFTER accepting it? What would be the consequences?