This question already has an answer here:
I'm a Pakistani citizen traveling to Pakistan from Melbourne on 1st Feb 2017. My passport expires in April 2017.
Will I be allowed to exit Australia with this passport?
I'll renew my passport from Pakistan before coming back but I was not sure about going from here with a layover in Bangkok for 13 hours inside the airport during my travel to Pakistan.