No. eSIM is not needed for 5G as there are 5G capable devices that use traditional physical SIM cards as well.
However, eSIM does offer some advantages for 5G. Such as the ability to switch between different carriers and plans without needing to physically change the SIM card which can be useful for international travellers.