I don't believe that native speakers consistently or carefully distinguish between in the end/beginning and at the end/beginning , (as is evidenced by your COCA examples), but yes, the strict distinctions would be the same.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.