Knowledge Base: Primer: Loading Content and Pak Files at Runtime

Hello! Is there a way to generate PAK files form runtime build?

No, this is not possible at the moment. The tools required for creating .pak and IOStore containers (specifically UnrealPak.exe) only exist in the Editor build and are covered by a different EULA, so you cannot distribute them with a game without an additional license agreement.