You can use any type of butter you want when baking cookies.
So if all you have is tub butter and not stick butter then the tub butter will work just fine for baking cookies and the cookies will turn out just as good with the tub butter as it would with the stick butter.
Some people say that the taste is different and the cookies don't taste as good to them after they used tub butter instead of stick butter so your results may vary depending on your tastes.
But for me I bake cookies with the tub butter and it turns out just fine for me but if you want too then you can go get some stick butter.