Answer
Yes, Gavaskar's captaincy was exchanged with Kapil Dev just months before the World Cup. This was a controversial decision, as Gavaskar was the captain of the team that had won the previous World Cup, and Kapil Dev was a relatively inexperienced player. However, the Indian team went on to win the World Cup under Kapil Dev's captaincy, so the decision was ultimately vindicated.