Yes, but it shouldn’t be the only thing you do.
Modern SEO means that earning backlinks is far more favourable than building them yourself, especially as you don’t know that the article and backlink you had published today is going to be deleted by the end of the month. A website where you post your content could also add other links to help their own SEO, or link to low quality sites which, in turn, hurts your own reputation.
If you are going to use other sites for content marketing, then ensure you build relationships and can have confidence that your articles or links aren’t going to be removed. Instead of doing this to gain links, do it with the aim of driving traffic to your site using the link.
Focus on your own on-site content so that you earn high quality backlinks from across the web as your main priority.