The short answer is that yes you can, however, with several considerations. The first is to determine whether the wall is load-bearing or not. If the wall is not load-bearing and only a partition wall, then it can usually be removed without issue.
If it is determined that the wall is in fact load bearing, it can usually still be removed but will need to be replaced with a properly designed support beam. There are generally two ways the beam can be installed either by recessing it up in the ceiling for a flush look, or by installing it under the ceiling if a boxed in beam look or arch is desired. Either method will require properly designed support columns at either end.
The beam can be made from laminated wood called (LVL), or steel. A beam made of LVL will be much taller than one made of steel, so if you have low ceilings and want a flush look then a steel beam may be the only choice. Otherwise, either one can work fine. A boxed in beam with some molding and decorative columns can look very nice too, it’s all a matter of personal preference and of course budget.