dorkfish,
The wood will probably be safe if you do this treatment, but it may rot quickly.
the best drift/bog wood is wood that has been submerged underwater or in swampy areas for a VERY long time, decades or even centuries. You may not be able to recreate that natural process in just a few weeks.
But if you boil and soak it a lot, you will likely remove anything that could be harmful to your fish. If it begins to rot or fall apart, it will have been an interesting experiment.
I collect all of my drift/bog wood myself and it seems that the best pieces are actually preserved stump and root pieces. I suspect that roots are much more resistant to rotting under water since they are underground and in contact with moisture the whole time they are growing.