Yes, you can purchase cannabis products legally in Madrid. However, there are certain regulations and restrictions in place. It's important to familiarize yourself with the laws and guidelines to ensure a legal and safe experience.