It is illegal for illegal immigrants to vote in federal elections.
Since enactment of the Illegal Immigration Reform and Immigrant Responsibility Act of 1996, federal law has prohibited noncitizens from voting in federal elections, punishing them by fines, imprisonment, inadmissibility and deportation.
https://en.m.wikipedia.org/wiki/Right_of_foreigners_to_vote_in_the_United_States