You can, but I'd recommend using a vaporizer.
Edibles are still the "safest" method of ingestion, since similar lung cancer rates have been observed amongst weed users vs. cigarette users. I tend to vape when I want a quick acting, shorter high, and edibles when I want to chill for the whole day, all night, etc.
Like anything, it's about moderation. If you're #420blazeit69ing all day, every day? Yeah, your lungs are going to get fucked up. But if you're taking a few hits on the weekend or whatever? You'll be fine.