Short answer NO
4 cu inches ( 65 cm cubed) allows for the end of a 14 / 2, no ground, nothing else.
Fixture canopys add space but, unless they are marked with the Cu. In. they should not be counted.
Almost anyplace that a pan box can be used an L shaped box, i.e. pan with a wiring compartment on one side, would do better.
I once asked an engineer at Raco why they kept making the 3" pans and he said, Because inspectors kept allowing them to pass inspection. [Linked Image]
Alan--


Alan--
If it was easy, anyone could do it.