Yes, you can use a corded drill with a handheld drill. However, it is important to ensure that the drill is compatible with the socket and that the drill bit is the correct size and type for the job.
It is also important to ensure that the drill is set to the correct speed and that it is held steady and level. Additionally, it is important to use the appropriate safety precautions, such as wearing safety glasses and gloves.