Goal: How do I get a stain out of a white shirt?

Which of the following methods is more reasonable for accomplishing this goal?
Take some stain remover and spray your clothes with it before you put them in the laundry.