Yes and no. The only true answer is that it CAN. Last year, I commented on a PewDiePie video. He hearted the comment (which is something he rarely ever does, and I legit went into fanboy mode when I got that notification on my phone. LOL), and it goes a ton of likes, naturally. Believe it or not.. I didn't gain any subs from that. Nor any spike in views. People just read the comment and went on with their day. However, commenting on videos, regardless of the outcome, does put your channel out there. The more people see it, the more people will recognize you. So that's one way to look at it. As long as you're actually commenting about the video and not spamming/self-promoting.