Yes, you can. a) In this sentence 'gardening' becomes the object, to show something that he likes to do. b) Basically, this sentence has the same meaning as the first sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.