Can God use a prisoner to spread the gospel?

Yes, Paul as a prisoner had such a testimony that he won pagan Roman soldiers to salvation.

Watch the Teaching: Is it scriptural to bind Satan?