Is this an assembled upper or a stripped barrel?
Give it a good hard look from both ends with the aid of a bore light, follow the rifling pattern, assuming you don't see any interruptions to the lands and grooves I'd say it's fine.
If it's already built and you have compressed air, you can always send a little blast through the gas tube from inside the receiver, then check the barrel again to see if you blew anything into it.
I wouldn't bother pulling the gas block off.
If you were to end up with a gas tube obstruction, it's not really a safety issue although you will have cycling problems.