It's not recommended to drive with a faulty ac compressor, primarily if it leads to engine problems; however, you can still drive the car for a short distance as long as you're not using the ac. However, as soon as you notice any issues, get it checked by a professional.