Can you take antibiotics that contains gelatin, which the doctor has prescribed to help cure an infection?

If there is no alternative, you can have it