People use electric cars this way, yep. The Chevy Bolt has a “camping mode” where it will keep the battery powered up for an hour after you shut it off so you can use accessories for various other things. You can also buy kits that allow use of an electric car as a backup battery for your house during power failures.
2 Likes