Oil pan design, drivetrain layout, cooling systems, and oil filter size are all factored into how much the system can take. This doesn’t affect how much oil is in the actual engine itself.
so based on your response, yes. Toyota COULD put a 10qt oil pan and function the same as an engine with a...