Can I link a camera to a mesh that is animated

In order to do a workaround to the camera path tutorial, I thought about importing an animated cube in my scene and make the camera a child of this moving cube.

But the camera won’t follow.

Is it something that is possible?

It is possible but you will have to do it via code. You should be able to make the camera entity a child of one of the bones in the animation.

So I need to add a skeleton to my cube?
Shouldn’t be too hard to do but I have no idea how to interact with bones in Playcanvas.
Is there any tutorial to get me started in that direction?

This is where you start getting into the undocumented material. Here’s link to a topic that has some example code: How do i know the bones name?