Was calcutta ever the capital of India?

During the period of the British East India Company, the Britishers made their headquarters in Calcutta (now Kolkata), as a result Calcutta also became India's capital. Later the capital was transferred to Delhi by King George 5 to crush nationalist feelings.