No. New Jersey has different rules regarding losses. You can only deduct losses against the same category of income, and only in the year that the loss occurred. So your rental losses can't be used to offset your capital gains.
See this link to the NJ Division of
Taxation.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"