Yes it´s possible.
The game will (usually) scale to fit to the device screen. So your game on a 16:9 screen will end up with black bars on the left/right side. The other option is to have it fill, that means your game on a 16:9 screen will have some parts cut off on top/bottom. You´ll have to take this into consideration when placing UI and whatnot.
The more complicated option would be to make it responsive to the device ratio.