Can an employer do this to me?

just do something real shitty and get fired. then collect unemployment.