No, it's not recommended to use third-party chargers with your AmpliFi router. The AmpliFi router requires more power than what a typical USB-C charger supports. The AmpliFi charger was specifically designed to power the AmpliFi router, whereas a third-party charger might provide insufficient power which could lead to getting an "Adapter error", random restarts, or even damage your device.
A replacement USB-C power supply can purchase at https://store.amplifi.com/products/amplifi-router-power-supply