The two universes are separate so even if something happens in one, it may not happen in the other...
First off, there are differences between the comic book universe and the cinematic universe. I will not take the time to name them, given it should be rather obvious, but they are of course numerous as well.
Even if the situation you are searching for happened in the comics it would be no guarantee that it would cross over to the cinematic story line. This speculation may or may not prepare you to see something in the upcoming films that will or won't be there. Depending on the type of person you are this could completely ruin your expectations and thus ruin your experience...
Loki is a scheming individual. He has appeared in three of Thor's movies and he has died in two of them... or so we thought. We also know from the first Avengers film that he can manipulate stuff while operating multiple projections (Trapping Thor and killing Colson). Given these details it is entirely possible that Loki survived and will make a triumphant return.
That said, despite Loki's personal motivations I like to think he would have gone with Thor to help defeat Thanos in some way given he also stayed after regaining the Tesseract at the end of Ragnarok and it seemed the two were back on the same, or at least parallel, wavelengths. I don't remember Thanos telling Thor his ultimate plan though so it is possible that Loki felt he had more to fear from him than "being destroyed with half the population of the galaxy" and hid to save his own skin...
I have heard that the Marvel universe was gearing up to hand over the reigns to new heroes (Ant-Man, Spider-Man, etc.) and that the current roster (Iron Man, Thor, etc.) all wanted to retire (for example). So given some actors desire an exit, it is possible that Tom did/does as well.
But check these out: Link 1 and Link 2 ... so... maybe?