You can purchase alcohol on the way out from Doha at the duty free. You can not buy it on the way in - and yes they do scan hand baggage and will confiscated any you try to bring in from elsewhere.