Expense a machine

If I bought a machine and placed it in service (7 year property) for $8000 on June 1st, 2021. I want to expense the entire amount for this year. Is it possible I can do that under code 179? Also, if I can where do I put it on my taxes?