Sleeping baby

Summer
My son will only sleep in his bouncer or a set of arms. Is this safe? He is only 5 days old