If you are using military time informally, yes.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
ciao ciaoi But if you wrote it on a school's test ?That kind of wording is not used in general. It's pretty much limited to military contexts.