Hello,
JoomSEF changes all the URLs to new ones, but if Google indexes the old non-SEF URLs (like index.php?option=com_content&view=article&id=4), those still work and are automatically redirected to the new SEF ones.
Best regards,
ARTIO Support Team