Yes, according to John the Baptizer, Luke 3:
God uses his army, Matthew 22:
If it bothers your conscience to be a soldier, you may want to quit.
John didn't tell them to quit their jobs.14 Then some soldiers asked him, “And what should we do?” He replied, “Don’t extort money and don’t accuse people falsely—be content with your pay.”
God uses his army, Matthew 22:
Some centurions in the NT became Christians and I don't think they quit their day jobs.7 The king was enraged. He sent his army and destroyed those murderers and burned their city.
If it bothers your conscience to be a soldier, you may want to quit.