The answer is "It depends". If it is a recent road bike, it probably has a carbon steerer. A stem extender should not be used on a carbon steerer.
But.......you can still get a more upright stem and tilt the bars up slightly to get your position higher.