Yes, dogs bark and growl using their vocal cords, located in the larynx. As air passes over the cords, they vibrate to create sound.
Barking is a sharp, short sound made by quickly opening and closing the vocal cords, often used for communication or warning. Growling is a deeper rumble produced by partially closing the cords and forcing air through, generally used as a threat display. The differences in sound come from adjusting vocal cord tension and airflow.