Yeah, it could be a loose hood causing the sensor to read open when accelerating (not sure if there's a hood-open speed limit or anything), but if that doesn't immediately solve it, definitely take it back to the dealer. Honestly the hood thing sounds like the best bet because they would have had it open, and if it's not lighting up the CEL, it's some sort of "expected behavior".
Of course, it could also be a damaged hood latch or sensor, which is a much more difficult problem to fix.
Of course, it could also be a damaged hood latch or sensor, which is a much more difficult problem to fix.