Water baptism is not necessary, but the spiritual baptism is - that being born again. Obviously people on their death beds in their last moments cannot always be baptized. Here's a good article on that:
What is Baptism? https://righterreport.com/2014/01/04/what-is-baptism/
On faith and works, the following article explains the relationship of faith and works accurately.
Justification by Faith -
https://righterreport.com/2011/12/1...-how-believers-are-declared-righteous-by-god/
Excerpts: "Initial saving faith is the precursor to works. Abraham was not saved (justified righteous) by performing works, he was performing works of A Godly nature because he first was saved and regenerated by faith. Works of a Godly nature are the result of our regeneration and salvation, not the cause of it.
Faith by grace is the antecedent of works. It chronologically occurs first. Once the Holy Spirit indwells a believer at the point of salvation, He starts the process of Progressive Sanctification, and one of the effects of the indwelling Holy Spirit (Titus 3:5-7) is that of causing, or compelling a person, by a change of heart and mind and with the believer’s cooperation, to perform works of a Godly nature. James’ argument addresses that time period of a person’s life, following true salvation and regeneration, when good works are supposed to be in evidence. He is saying, “Now that you claim to be saved, we should be seeing some good works out of you. However, if these good works are not apparent, then your initial faith was probably not genuine, and you were never, either in the eyes of God, nor in the eyes of man, justified righteous.”
"Another way to illustrate this is to consider the thief on the cross next to Jesus – the one who stated, “Jesus, remember me when you come into your kingdom.” Then Jesus responded by saying, “I tell you the truth, today you will be with me in paradise” (Luke 23:42-43). It was at this particular moment that the repentant thief received his salvation, and was justified righteous in the eyes of God. This particular moment would also coincide with Genesis 15:6, when Abraham believed God and it was credited (imputed to his account) as righteousness, and would also coincide with what Paul stated in Ephesians 2:8-9. Note that there is no evidence that the thief had performed any good works in his life. To the contrary, his works were more of a criminal nature than a Godly nature. That was the very reason he was being crucified. Even as he initially hung from his cross, he heaped insults on the Lord (Mark 15:32). But then the sky darkened, his pain and suffering magnified, and the words Jesus spoke on the cross hit their appointed target, and the thief had a change of heart and believed on the Lord. At that point, the thief received his salvation and justification."