so i need a pc to put my 2060 in and I want a optiplex
So this is an Optiplex 3010. That introduces some good points and some bad points. Mostly bad, so I'll start with those.
The -010 series is from the Ivy Bridge generation
It's a "3" model, meaning only two DIMM slots. If 16GB is all you need, cool. If you need 32, that might be a problem.
If you have a GPU installed, you will not have access to the SATA ports on the board. You'll need to buy right-angle replacements, and some GPUs block those from fitting in either. This is a killer for lots of Optiplex -010 builds.
You will need a new PSU
It's definitely cheap
At least a standard ATX PSU will work with this build.
Honestly though, the days of the Gamerplex are quickly becoming numbered. The Sandy Bridge and Ivy Bridge processors are approaching EOL in any kind of modern gaming. The Gamerplex was at its best when Sandy Bridge and Ivy Bridge CPUs (even Core 2s) were still capable of reasonable AAA gaming. The idea was that you'd spend $125 on an Optiplex 790 with an i5-2400 and 8GB of RAM, then drop in some $20-40 form of storage and a GTX 750 Ti, GTX 1050, RX 460, something that doesn't require external power. Suddenly, boom, low-power gaming PC that probably cost you under $250 total. The goal of a Gamerplex was never to take a 10-year-old entry-level CPU and strap a midrange GPU from 2019 to it. What you'll end up with is not what you thought you were getting.