Yes, but they don't get to break them selectively based solely on who would come to greater harm, like the parent commenter suggested. There are common rules of the road that apply to everyone.
For example, it's not okay for a car to rear end a truck or for a pedestrian to jaywalk.