Certainly, there are Martian people who devote themselves to God alone without associate or peer. While other are idolaters, and some are atheists and non-religious.
The situation may be more or less like the people of Earth.
Logically while God is the same God Creator, and He gives to everyone the free choice to believe and work the righteous work and charity.
The Martian will be Judged like the Earth people.
Quran 17: 55, which means:
(
[O Mohammed] your Lord knows best about [the deeds of] all those who are in the heavens and the earth.f)
........................................................................................
55
f i.e. the planets including the earth, and about their large number, in addition to the little number of these: [your people.]
And He sent them prophets to guide, instruct and teach them.
http://quran-ayat.com/pret/17.htm#a17_55
quran-ayat.com/pret/17.htm#a17_55
This topic will clearify this subject:
http://www.quran-ayat.com/universe/index.htm#The_planets_Are_Inhabited_
quran-ayat.com/universe/index.htm#The_planets_Are_Inhabited_