Yes - which is likely longer than any prison sentence he might have served in a relatively comfy Swedish prison - if the Swedes had ever actually charged him, gone to trial and won. He still has to answer for jumping bail in the UK though. Had he left the Ecuadorian embassy (or never entered it) when Obama was in power, he could have been long gone by now - Obama's administration never showed any interest in him. Trump's administration may be a different matter.