Absolutely, It is the basic function of an IDE to allow you to run the code you have just written or are editing so you can see the result.