Technically, is one thing. Practically, is another.
An applicant who clearly meets the requirements will be granted citizenship. That is how it works. The law states shall be granted citizenship.
Whether IRCC assesses your case and concludes you meet the requirements, however, is subject to a range of practical considerations. To some extent where one is living suggests something about where one has been living. To some extent, where one is working suggests something about where one has been living and working. To the extent a person has ties abroad, that suggests something about the veracity of their claims about time in Canada.
Applying after already having moved abroad is bound to invite questions, concerns, and probably some doubt, if not overt skepticism, about how much time was actually spent in Canada.
An applicant prepared for delays and for responding to RQ and in that response proving actual presence, as in presence in-between the dates of entry and next exit, really proving actual presence for those days, should be able to ultimately prevail and be granted citizenship. Caution, that can be a more difficult burden than many recognize.
Remember, there is no requirement that the applicant "deserve" Canadian citizenship, but anyone who overlooks the importance of appearing to deserve Canadian citizenship is a fool.
In the meantime, be careful about declaring any address as your residential address if you do not really live there. The consequences for misrepresentation are more severe now than they were not all that long ago. Hint: highly secure accommodations may be available, bars included.
All that said, the particulars matter, your actual situation matters, the reason for being abroad, and for how long, matters. Lot of depends, depends on this, depends on that, are in play.