早上 does mean morning specifically rather than 上午 as AM or the first half of the day, but when we say "in the morning" like this in English we often mean as opposed to "in the afternoon", so 上午 is appropriate here (besides flowing slightly better than 早上 within the Chinese sentence).