Easier if you live on an Island, but still quite difficult - Victoria (about 1/4 of the Australian population, IIRC) had a serious 4-month lockdown that just recently ended.
I suspect most countries who would take a 4-month lockdown would be in a very good condition.
The place where being an island helps tremendously is with avoiding re-introduction.