Yes with a grid tie inverter it's pretty much that easy. But doing it yourself this way can be dangerous to electricians who thought they cut the power. If the "island protection" on the inverter fails to disconnect after the loss of power those wires could still be hot.
Edit fixed a word
Oh lord that escape key bit is me