Can i publish my game for free

i was wondering if i could publish a game that’s free and uses Unreal Engine 4?

Yes, of course. You only have to pay royalty on a commercial game (like you sell the game or you make profit through in-game ads)

how do I publish a game?