It can be both. For example when I arrived in Canada, I left my family behind for over a year. To cure myself and cope with the situation, I wrote extensively. This also helped my wife who was not a writer. We used poems as means of keeping our spirit high and arrive till when we passed this torturous episode in our lives.