If I have a class A that uses some interface I, and that interface returns class B, should I draw a dependency from A to B on UML class diagram?
If I have a class A that uses some interface I, and that interface returns class B, should I draw a dependency from A to B on UML class diagram?
You describe a class A which uses an interface I which uses a class B. This could look somewhat like:

Should you show a dependency of A to B?
Now a definition:
A Usage is a Dependency in which one NamedElement requires another NamedElement (or set of NamedElements) for its full implementation or operation. The Usage does not specify how the client uses the supplier other than the fact that the supplier is used by the definition or implementation of the client.
It is not required by UML, nor by your design, but if you want to document the implementation, you may have a second thought at dependencies. Some languages such as C++ may require for compiling A, to have the definition of I which would require to include the definition of B. So to compile A you may need to know B. If you think it would help you to stay aware of such dependencies, you could show it. It is not wrong, but personally, I advise to show only direct dependencies, because you can easily deduce the transitive ones, without cluttering the diagram with a lot of extra arrows.