In a way, yes, but not entirely. Both the English and Hindi movies are remakes of the 2018 Spanish film.
Martin Lawrence's Rebound (2005) had a very similar plot, except it featured junior high school kids on the team instead of retards.
"After a DUI, an arrogant basketball coach must train Neurodivergent adults for community service. His initial prejudice fades as his players show him a new perspective on life."
This is a spiritual successor to Khan's film Taare Zameen Par (2007).