The most simple setup would look like this:
But perhaps you simply want to attach the cylinder to the cube, in that case you’d need no nodes whatsoever: