Can I get a prescription for Co-Codamol for Headaches?

Is Co-Codamol Good for Headaches?