OpenLayers has many different
ol.layer classes. The layer types are only for different kinds of data (tiles, images, and vector). Using an attached
ol.source.* will allow you to connect to a different type of map server 'back end.' Each layer object is independent of other layer objects; so, doing things to one layer won't necessarily affect the other.
How many layers can I have?
The safest maximum amount of layers you can have on a map at one time depends largely on the user's machine (that is, ...