Would this cable work for a modem?

So I could use a different coax plug put it in the wall, then connect it to the "in" side of the splitter. then send one of the "out" sides to the TV and one to the modem? Or does the splitter go into the wall via the coax plug?