Usually most airlines forbid it. However, most chief pilots will give you a waiver if you ask. But they make it perfectly clear that your outside flying shouldn't conflict with your primary job. So you need to track your times and rest carefully. And be prepared to do the carpet dance if you tell your employer that you can't accept an extension because of outside flying.