'At the end' generally refers to the distinguishable conclusion of a movie, book, narrative, etc, and 'in the end' means 'finally', so while they are usually synonymous, 'in the end' could conceivably come after 'at the end'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.