It doesn't change the meaning, but it changes the time reference. In (2), we expect more information, such as: Yesterday I had crashed my car into a tree before I realized what the speed limit was. [ Note that many people do not feel the need for the past perfect (had crashed) when a word like 'before' or 'after' is included.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.