I don't see why it would be, as long as you're just sending one real job application. If you tried to DOS a company by sending in a ton of garbage applications that'd probably be illegal.
That said I wouldn't be surprised if you get declined if the company realizes you did so.