Yes. It is the main problem (and, simultaneously, the main advantage ) of quantum computers. The details depend on a way of quantum computation realization. There are many such ways. You can find interesting information in the field in good book M.A.Nielsen, I.L.Chuang. Quantum Computation and Quantum Information. Cambridge University Press, 2001 (this book is not very fresh, there appeared a few new ideas after its publishing, but it is good written and understandable).