Learn which power adapter and cable comes with your Mac laptop and how to check the wattage of a connected power adapter or display. Refer to this article --> Identify your Mac power adapter - Apple Support
"If your Mac uses USB-C to charge, you can charge your Mac laptop with any USB-C power adapter or display. You can safely use a power adapter or display with higher or lower wattage than the adapter included with your Mac. For the best charging experience, you should use the power adapter and cable included with your MacBook Air, MacBook Pro, or MacBook."
You can use a compatible higher wattage adapter without issue, but it won't make your computer charge faster or operate differently. Lower wattage adapters will not provide enough power during normal computer use. They may charge if the computer is not in use, but charging will be slower. If a more powerful charger is used then as long as the voltage is correct the excess wattage does not matter. The computer will use as much as it is designed to use and ignore the rest.