Yes, and he spent much of the season on loan. Barcelona has a high level of talent, so if he can't perform well, he'll definitely be out. Especially at 33 years old, this is the right decision for Barcelona, at least they can save money on the striker. But so far, there is still no exact news whether he will continue to which club or retired, but no retirement news emerging so far.
His presence in the team hasn't been much of a boost, so it's no surprise that management is starting to end his loan spell. Furthermore, Barcelona has many players in the same position with far better quality, so letting him go could free up some of his wages. At his age, I think it will be difficult for him to find a big club, as his performances in recent seasons have been less than impressive. The Saudi Arabian League might be a good fit for him, but so far no club has approached him, so finding a new club will be a bit more difficult for him at this point.