Shadow Catcher ue 5.1.1

Hello. Can you please tell me if there is any way to do shadow capture in order to place an object in a photo? I render only on Path Tracer. What are the ways? except through composer