Answer
Yes, the carbon - oxygen ratio equals $3:4$, meaning there are $3$ grams of carbon for every $4$ grams of oxygen.
Work Step by Step
In all three samples, if you divide the given masses of carbon by the respective masses of oxygen, you will get $\frac{3}{4}$.