Yes, it is possible to use the same inverter for both grid-connected and standalone operations. An inverter is a device that converts DC power from a battery or other source into AC power. Some inverters are designed to be used in both grid-connected and standalone configurations, while others may be limited to one or the other.