Sinusoidal linear motion using a DC motor

Yes. Just use PWM (analogWrite) on one of the PWM pins which are marked with a ~ next to the number. You will need an H-Bridge of some sort to drive the motor, of course.