Baby sleeping in swing

My son is almost two months old, I try to get him to sleep in his bassinet but lately he isn’t having it. My friend has a Fisher Price cradle and swing and he fell asleep no problem. It has a harness that goes over the shoulders too. He’s almost 2 months old. Can I let him sleep in it at night? My friend says she let her daughter sleep in it.