Yes, you can get in trouble for giving your underage friend a beer. If caught, you could face penalties such as a fine or jail time. Additionally, the person who consumes alcohol could also face consequences. Therefore, it is always best to obey the law to avoid potential penalties.