No, these are two similar but still different things. Both are mild, white, grainy, and creamy cheeses. However, the texture of Ricotta is smoother, with smaller curds. Cottage cheese and farmer's cheese often have bigger curds, the texture is more grainy and dryer. You can't really use ricotta and cottage cheese interchangeably in recipes.