PWM on DC motor

Yes, you can send PWM to a DC motor, but not directly from the processor unless your motor is very tiny and draws less than 40mA - you need a drive transistor or H-bridge.