Returns whether or not the given port number is valid.
the port number to validate
true if the given port number is valid, otherwise false