In most cases, the target does not automatically realize they were under the influence of Suggestion 5E after the spell ends, unless the suggestion was significantly out of character or someone points it out to them. However, the Dungeon Master (DM) may rule differently based on the context.