Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent [them] out another way?
Certainly these picture works as a part of justification. However we need the following verse to qualify how we understand the rest of the context.