Technically, yes. This process of applying for a card, getting the bonus points and then cancelling the card is called "churning". If you're going to do this, make sure the points have landed in your account and you've paid the balance in full before trying to cancel.
But keep in mind that regularly applying for cards then cancelling them can lower your credit score and reduce your chance of approval. So it's a good idea to keep track of your credit score and limit applications within a 12-18 month period.