Yes, you can use a larger wire, if fact if the distance is unusually long it is preferred. But keep in mind that some operators use wire connections that are push-in and the larger wire may not fit and/or be held in place adequately.
If you have screw terminals there should be no problem.
If you have screw terminals there should be no problem.