Yes, they legally can; yes, there are ways for them to do it; yes, if you lie on the application and they check and find out you lied, you will not be hired. What's more, if they don't find it out until after you are hired you can bet that you will be fired. And it will be perfectly legal.
Don't do it.