This works fine but you can only do it if there are large foreign reserves of your currency. Now, since foreign reserves of USD are massive, we can print a lot of money (relatively) before it becomes a problem, but it isn't like this exempts you from market effects. The reason foreign reserves of USD are so high in the first place is that we usually do this very little.