Is it ok to use 10 gauge wire for outlets?
Yes, you can use 10 AWG copper conductors with a 20 ampere breaker. The smallest size conductors you could use with a 20 ampere breaker, are 12 AWG copper conductors. There’s no problem using larger conductors, other than cost to you, and difficulties associated with working with thicker conductors.