Only MPs can vote in parliament, People who had voted for them are not allowed to vote in parliament. hence if a person elected as MP on a party ticket should vote as per the party policy. else he should resign from parliament and seek fresh mandate.