So yes, speed limits do cause people to drive slower, and are designed to be safe knowing people will bend the law a little bit.
Ask Wyoming how removing speed limits helped their freeways.
Speed limits aren’t the only solution, obviously. But they are effective in most situations.