Yes and no. In most cases, shoulder surfing is legal unless it falls into a niche category relating to public job opportunities.