It likely will work however you may need to update the bios to the latest version. Some X370 motherboards may need a bios board prior to using a 2700x or the system will not post. Most new x370 boards should ship with this update, but there is a possibility it won't.
I would suggest an X470 or B450 board for out of the box support and they will likely get firmware updates for longer.
Your current motherboard is compatible with an RTX 2070 as long as you have a decent 550w PSU.