Generally speaking, yes. Doing so makes it clearer where an exception might be thrown. If you have loads of code inside the try block then it's easy to get confused about what part of the code you're guarding. The advantage of putting all the code in the try block is that the remaining code will be automatically skipped if an exception is thrown. Otherwise, you might need to add a return statement to the catch block or the like.