Yes it can, with robust system prompts.
The webapp is a misleading representation of ChatGPT's capabilities.