I have a hosting contract with godaddy that I don't use anymore, can I use the unused CPU and space to do bitcoin mining?
No you cannot.
CPUs and GPUs can not mine bitcoin anymore.
(they can mine all they want, but they will not find a block for literally thousands of years, nor contribute a meaningful share to a pool)
Only specially designed ASICs can do any effective bitcoin work anymore.
You may be able to find some AltCoin that you can work on.