Multiple sources, including Merriam-Webster, Cambridge and Oxford state that "dude" is a masculine noun, synonymous with man, guy, etc., so I disagree with this. As an exclamation, sure, as it's not referring to anyone in particular, so it can be taken as an impersonal interjection.