question about royalties

if i make a game in unreal and release it publicly but i do not charge for people to play it will i have to pay anything?

No. Unless you add ads or microtransactions.