Depends on the individual fish and the environment. But in my experience definitely not. My regular 6 inch jd was a delicate flower. Every other fish would be fine. Perimeters perfect. But the JD would turn pale and play dead during water changes and he was a constant battle with internal parisites the whole year I had him. He then died one day when a past red devil I had finally snapped and killed him. I think JDs definitely do better in larger tanks with larger fish when they are the subdominant smaller fish even when full grown. At least from what I have seen.
Why did you have a Red devil with a JD? Where they the only fish in the tank? In my experience JDs are definitely more succeptible to being shy when the tank is rearranged but will come back out soon if you don’t mess with them too much. All my past JDs have been decently hardy.