Can you put a linear drain in the center of shower?

Yes, you can. However, be aware that your shower will need to slope in the direction of the drain. Additionally you may not want the channel to be directly where a person showering would be standing as it may be uncomfortable to stand bare foot on top of the drain cover.