Thank you for using Just Answer!
The Department of Defense has a military funeral honors website that outlines who is eligible for military funeral honors. It does not mention that serving in a war is a prerequisite for having this honor. States that former military members who served on active duty and departed under conditions other than dishonorable are eligible. I have attached a link to the site for your review.