No, we made Pakistan because we wanted to create a secular (Muslim majority) nation, to escape from Hindu prejudice and domination over everyone non-Hindu. The creation of Pakistan had nothing to do with Islam.
If that is the case, then why didn't Bangladesh become a part of India post 1971...