Yes it is true, the type and the power of the hidden power of the Pokemon does depend on the some factors like your Pokemon's IVs. It is always a very good thought to know everything about our Pokemon, after all it will always be of great help during the battle and plan our moves accordingly. All the hidden powers are special and more capable but the most important thing is when do we use it so that it has the maximum effect of its use.