I have used 2.4" tires on narrow rims without problems. In theory this can cause the tire to 'squirm' under side loading and possibly make pinch flats more likely, but I never had a problem.
As above, you are more likely to have an issue with clearance in the frame or fork than with fitting on the rim.