That will depend on the discount code itself, some discount codes are meant to be used individually while other discount codes can be used combined.
If you are trying to apply multiple discount codes at the same time during checkout and the system gives you an error, that would probably mean that such codes were not allowed to be used together.