Yes, if your encoder input sentence is of 10 words then you must have at least 10 GRU cells. 1 GRU cell there will take 2 inputs- the current word and a hidden state. This hidden state is either got from the encoder of the previous timestep or can be initialized