Yes. It would be wrong to say that he opposed the independence of Pakistan. You could rather say : "By opposing the partition of India, he opposed the creation of this country"
You should watch the Ben Kingsley movie and brush up. Along with Daniel Day-Lewis as Lincoln, it's maybe the greatest biographical casting ever. By the way, a very young Daniel Day-Lewis briefly accosts Gandhi in South Africa.
I've seen both movies more than once. Though the first time I watched Gandhi I was a child and the 2nd time I guess whatever the name of his political party was didn't seem like an important point to remember.
The nationalists would obviously object but most of the normal folk will neither be too pleased nor too disappointed, as Kingsley himself is part-Indian.
Could you accept 'Harijans' for Dalits, because that's what Gandhiji called them.
Also, it would be more accurate to say that he opposed the creation of Pakistan, as opposed to independence. He was against the partition of India.
Also he let his wife die before allowing her to take western medicine. Then later took it himself to save his own life.