Yes. Pedestrians are required to obey general traffic laws. In fact, plenty of rules and laws govern pedestrians.
For example:
Pedestrians must obey traffic devices applicable to pedestrians
Pedestrians must not walk on roads paved for vehicular traffic
Pedestrians cannot stand on segments of roadway intended for regular traffic to solicit a ride