Yup. This is the case in the UK too. You're not allowed to be drunk and drive, but you're absolutely allowed to have a can of beer while driving. This surprised me when going to the States - there's nothing stopping you from downing a can then getting in the car, but it's illegal to even have an open container of alcohol in the car (even if held by a passenger and you're teetotal)