Can you get fired just for wearning jeans?

Unless you have a contract that states otherwise (you probably do not - most employer/employee relationships are "at-will"), or unless local law states otherwise (it probably does not), you can be fired for any reason or no reason with or without notice as long as the reason is not discriminatory or illegal. Firing you for wearing jeans is perfectly legal.