Masters or Job?

I am an undergrad who is specializing in artificial intelligence and data science. Is it recommended to do a masters in the same domain considering that I am already doing a specialized degree or should I apply for jobs and work while learning via courses or online degrees? It would be great to get few insights.