Is this ok behavior with the cat?

They are never overly aggressive with each other but my golden will chase the cat around and annoy him like this. Sometimes the cat wants to be left alone and goes upstairs like here but other times the cat stay downstairs and goes along with the “cat and mouse” game. Still, is this behavior I should be discouraging?