It'll work, but you should be sure to include an informative error message.