It is true that works have nothing to do with our salvation. It is by faith alone. Faith in Christs righteousness.
BUT can you have faith and not have works, is it possible to have faith in Jesus and have a life void of good works? If you have Jesus you have a new heart free from sin.
Eph_2:10 For we are his workmanship,created in Christ Jesus unto good works, which God hath before ordained that we should walk in them.
Mat_7:23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
Works of iniquity = not being saved.
1Co_6:9 Know ye not that the unrighteous shall not inherit the kingdom of God? Be not deceived: neither fornicators, nor idolaters, nor adulterers, nor effeminate, nor abusers of themselves with mankind,
Gal_5:21 Envyings, murders, drunkenness, revellings, and such like: of the which I tell you before, as I have also told you in time past, thatthey which do such things shall not inherit the kingdom of God.
True faith = good works, so no good works = no true faith.
Jas_2:26 For as the body without the spirit is dead, so faith without works is dead also.
Rev_20:12 And I saw the dead, small and great, stand before God; and the books were opened: and another book was opened, which is the book of life: and the dead were judged out of those things which were written in the books, according to their works.
Rev_20:13 And the sea gave up the dead which were in it; and death and hell delivered up the dead which were in them: and they were judged every man according totheir works.
Rev 22:11 He that is unjust, let him be unjust still: and he which is filthy, let him be filthy still: and he that is righteous, let him be righteous still: and he that is holy, let him be holy still.
Rev 22:12 And, behold, I come quickly; and my reward is with me, to give every man according as his work shall be.
Rev 22:13 I am Alpha and Omega, the beginning and the end, the first and the last.
Rev 22:14 Blessed are they that do his commandments, that they may have right to the tree of life, and may enter in through the gates into the city.
Faith and works are inseparable in that if you are saved by faith you will live a life of works that reflects that faith.