No, a factory reset alone will not remove the iCloud lock from your iPad. If your iPad is locked to an iCloud account, you will still need the iCloud password to unlock it after the reset. Consider contacting the previous owner or Apple Support for assistance with removing the iCloud lock.