Some pins have specific uses. Digital pins 0 and 1 are used for the hardware serial port. They should not be used for other purposes.
There are specific pins for PWM. If you need PWM output, you should use those pins.
Other than than, you can use any pin for any device.