The main problem you will probably get would be when you screw the hook into the beam, the beam might split. Or it might split after a month of use. So you could drill in a small hole that's like half (or less) the width of the hook. It's less likely to split that way, but if the guide hole is too wide then it will make the hook weaker.
Another option completely is to get some chains, wrap them around the beam, and then connect them to the bag.
With either option, make sure the beam is supported perpendicular to the direction the beam runs. If the beam is going to wobble sideways, then you'll run into troubles later. I hope that makes sense to you.