No, you shouldn’t do that. A dimmable bulb will work with a non-dimmable switch but that won’t be vice versa. If you do so, the circuit inside non-dimmable LEDs won't be able to handle the dimming current and will be damaged eventually. They are only designed to operate with full power on and off.