Yes, you can use tomato cages for growing cucumbers vertically. However, cucumbers need between four and six feet of vertical height in order to grow successfully. Therefore, if you are planning to use tomato cages for your cucumbers it is important to check that they are tall enough, otherwise you might need to join two together to provide the necessary height.