Welcome to BYC! Please make yourself at home and we are here to help.
Yes that could work for a coop. Just make sure it's sturdy and predator proof. You may want to stop by our coop section. Lots of helpful ideas there. https://www.backyardchickens.com/atype/2/Coops