Short answer: No.
Long answer: Possibly, but 99% unlikely to work. It depends on if the ports are same pinouts, same shape and size, the notebooks use the same power adapters, have the same IO capability...and more. This is, of course, assuming your Gateway is a notebook. If it's a desktop, then the answer is definitely no.