Is putting my dog in a cage is good?

I have been noticing that my dog need a space to do exercise, jumping running etc. I take my dog with me while walking but most of the time I am at work and at that time my dog bore and want to go outside. I have a large garden in my home and I am now thinking to buy this https://www.inthemarket.ie/product-category/pet-supplies/dog-runs/ (dog run) for my dog so that he can easily do whatever he wants to do and also I am not afraid of anything that he is fine or not. Doing this is a good way to keep my dog entertaining?