Yup
His movie "Spartacus" was based on a book by Howard Fast, whose Communist past got him blacklisted by the Hollywood studios. Dalton Trumbo, another blacklisted writer, worked on the script. Douglas was considered responsible for fighting to make sure Trumbo got screen credit under his own name.
Fast and Trumbo saw the Roman slave revolt as an allegory for Communist revolution: an inspiration for the revolt of the proletariat against their bourgeois "masters." That symbolism was mostly lost on American moviegoers, and probably Douglas too. He was likely doing the fashionable Hollywood "thing" that remains in vogue among not-very-bright members of the pampered acting class.
This letter written by William F. Buckley about Howard Fast is interesting IMO: Howard Fast