It’s just as potent of an intoxicant when eaten as it is when smoked, possibly more so.
Most definitely works the same, the reason I say preferred for medical reasons, because no smoke to possibly harm the lungs...