Deductions & credits

Hi, I’m self employed and I’m thinking of buying a new laptop for work. So let’s say I owed $20,000 for the year will I be able to deduct $2,000 (MacBook Cost) off my tax? So I will only basically pay $18,000 instead of $20,000?