It’s perfect.
It would be the best choice if you want to have a short stay in Barcelona.