There isn't a plain yes or no answer to this question. The career gap decision is based on various personal and professional factors. You can take a career gap right after graduation to pursue a master's in technology. It is also fine to take a gap of six-seven months and acquire relevant skills if you don't have a job offer right after graduation. You can also take a career gap for any personal reason. However, you should take a career gap only if it's necessary.