Under most circumstances, No, you can not have long hair while you are serving in the British Army (or indeed any of the armed forces). There can be times, depending on your unit, role, location and task when haircut regulations might very occasionally be relaxed but it will only be a temporary arrangement.