Actually, the encode_plus method is deprecated, it’s advised to just call the tokenizer, as shown above.
BERT indeed has a token limit of 512, so if you provide two sentences they should fit into this budget. If you want to try longer sequences, you can take a look at LongFormer 30 or BigBird 12.