Excluding respondents in models

Can I exclude certain respondents using “create model”?

When creatin the model - choose ‘custom expression’ from the segment dropdown.
Then define a ‘garbage’ segment to include the bad IDs
e.g.
if ($RID == '123' || $RID =='234') { return 'garbage'} else { return 'valid'}