probably a stupid question but I'm a FTM so be nice please!

Is it ok for my baby to sleep in the swing ?? Like take short naps ? I got the swing second hand from a neighbor and it didn't come with directions... sorry if this sounds stupid!