Get your taxes done using TurboTax

If I use the capital gain to buy a car to work for door dash or uber am I able to write it off my capital gains with it?