As seangee said. No, they really don't enjoy being sucked against an filter intake
Bettas are just not the strongest, fastest swimmers since those huge fins give them a lot of drag, and in the wild they've evolved to live in waters that are very still, so they really don't like a lot of flow, it makes it much harder on them to get about, poor things. He can be damaged and get fin tears and ultimately fin rot from being sucked against it, or if you have plastic plants in the tank
Have a look at
this article. I don't agree with everything said in this article, but they're right about how bettas live in the wild and that they really need a filter, but that the right filter for a betta is crucial:
It also says;
"If your betta’s filter is too strong you will need to remove it or reduce the strength of the current. Filters are not ideal for tanks under 3 gallons and you should upgrade the size of your betta’s habitat. Hanging on the back and internal filters come in varying strengths and may be too strong for a betta fish.
If your betta is struggling to get to the surface for air, hiding and scared, and frantically swimming in the current, your filter is probably too strong.
This can severely stress your betta fish and lead to fin damage, injuries, and even death. After becoming physically exhausted they can be tossed around or even sucked up by the filters intake tube. Allowing your tank’s water to get and stay below the recommended depth from the filter’s output will also increase turbulence in the water.
The first thing to try is limiting the flow of your filter if it’s adjustable (try the lowest setting). If not, consider returning it, purchasing a new one, or trying these tips. You can increase plants and decorations near the filter to break the flow as it enters the tank. There are also other methods like creating a separate compartment for filtration by dividing the tank."
Please do some more research into care requirements for a betta, want your little guy to have a long and happy life and for you to have a successful tank