Hi hiram.dule21, Welcome to the UR Comunity.
Yes it’s absolutly fine to use a switch that is rated above.
As it’s is only a switch and not supplying its own power, it purely means it can handle a higher current.
The power is supplied from the Robot and just passes through the switch to complete the circuit.