Yes you can.
Understandably, its a question we are asked a lot and it is a subject we have looked into in fine detail. Unreal Engine is free to use and Epic Games have been keen for it to be used in film and television for many years now. There is a licensing agreement in place between Epic Games and their customers that protects their intellectual property (in terms of the software and its coding and prevents sublicensing and sales of games that may exploit Unreal Engine for large monetary gains) however the licensing explicity has a line permitting use of rendered video files, such as those used in our macro virtual productions. A credit must be given to Epic Games if Unreal Engine is used in a production.
From Epic Games:
(You can read more about the Epic Games licensing agreement in full here)
All items bought from the Epic Marketplace (such as CGI models of vegetation, buildings or vehicles) are licensed to use in our macro virtual productions. CGI assets purchased from Epic’s Marketplace are licensed to Olaus Roe Ltd to use inperpetuity, as long as they are background elements and not the primary focus of the content.
From Epic Games:
You can read more about the use of Marketplace products in an Epic Games statement here