If it is filed with a request for extension of status and not consular notification, then yes. The approval notice will indicate which and have an I-94 attached at the bottom if an extension. If it's filed with a request for consular notification, then you will need to leave the US and get a new H-1B visa and then reenter to activate it. I assume that when you say extension, you mean with the same employer?