Maybe.
The GPU his giving you is a laptop GPU? Does your laptop has the proper space/slots to hold it?
If both answers are yes, then you probably can, it might be difficult to do so but with care you might do it just fine.
If any of them are no, unfortunately that's a no for your answer as well. Desktop GPUs and Laptop GPUs are different from each other, and therefore incompatible.