Nothing is stopping you. Note that if you're talking of changing from drop (road) bars to flat bars you'll need new shifters and brakes levers. Take care also that the new bars you get have the same clamp diameter as the ones you're replacing or you'll need a new stem too.
You may want a different length stem to get the bar position comfortable.