Yes, if your carry-on bag can fit under the seat in front of you, you're free to put it there. However, that space will likely be occupied by your underseat luggage, so there's usually no space left for an additional carry-on. Plus, you won't have much legroom left.