Yes, students at Hogwarts School of Witchcraft and Wizardry are taught magic and are allowed to use it outside of school, especially during vacations and breaks. However, underage wizards and witches are subject to the Decree for the Reasonable Restriction of Underage Sorcery, which regulates the use of magic in the presence of Muggles (non-magical people).