Whether its correct or not? That kindof depends.
You should be able to access any part of the prototype from within the function context.
Now, if you mean accessing it with the "this" keyword, Im sure you might run into issues.
However, if you keep a variable active outside of the function which access the prototype, you should be guaranteed to be able to access it from within the function itself.