Just for the sake of listing them, or do you mean when you actually use them?
I assume the latter, then yes. I'd recommend to always properly declare what you use where you use it, even if it is present transitively. That also documents which version you require and also if the lib that transitively depends on it does not anymore in a future version you already have the declaration you need.
The dependency analysis gradle plugin also helps you in properly declaring your dependencies, also warning when you use transitive dependencies undeclared and so on.