Yes, sometimes, they're interchangeable. 作 works for most of cases. It occurs much earlier than 做 in Chinese language history. But now, people prefer to use "做 + concrete noun" while “作 + abstract noun”, here are some examples:做饭 cook做蛋糕 make cake做家具 make furniture 做衣服 make cloth做作业 do homework

作弊 cheating作曲 composing作文 writing作报告 reporting

Generally, 做 is the word extended from 作. it's a little bit hard to distinguish them. It's rather custom than rule playing the role in choosing the correct word. So, use what you see is the best way for this case