Yes, it can only learn one at a time.
Ultra Necrozma is basically either dusk or dawn form Necrozma with a Z-Crystal. Since Dusk Mane cannot learn Moongeist Beam and Dawn Wings cannot learn Sunsteel Strike, it is therefore impossible for any form of Necrozma to have both moves.