There was a recent thread of experiences with this. You don’t say how long in advance and which flight etc, but it seems you may be limited to check in opening hours
QR835 BKK - DOH Check-in time
The lounge is also not open 24 hours, current hours appear to be
5–8:35 AM
3:30–8:10 PM
10:30 PM–2:30 AM