Are all chainring compatible with all chain? I want to change my drivetrain on my bike and i found everything except the chainring. So I was wondering if I could choose any chainring. 
Thank for yours response.
No.

The chainring needs to be compatible with the rest of the drivetrain.

Chainring pitch (width + spacing) gets tighter with increased cogs on the rear wheel. So a 9 speed chainring is not compatible with an 11 speed drivetrain.  Additionally there are new narrow-wide chainrings for single chainring setups will not work well in a system with a front derailleur.