Yes, Sonic is male — he's referred to as "he" throughout the games and the Sonic X animated series. No ambiguity there.