No, Barcelona has a Mediterranean climate, so it doesn't rain a lot. The best time to visit is from May to September when the weather is warm and dry. However, it can occasionally rain, especially in the winter months.