Potentially, yes. The minimum officially recommended RAM capacity for UE 5 is 32 GB.
However, there are other ways you can improve the editor performance without upgrading your RAM:
- Set the editor to run on high performance from Windows Settings > System > Display > Graphics
- Open up the Nvidia Control Panel, and from the Display Mode section, switch to the Nvidia GPU Only mode.
- Inside the editor, reduce the project’s scalability from Quick Settings (The Settings menu on the right side of the toolbar at the top, with a gear icon next to it) > Engine Scalability Settings
Hope these help